package day03;

public class OperDemo4 {
    public static void main(String[] args) {
        //赋值运算符 ： = += -= *= /= %=
        int a = 5;
        a += 5;
        System.out.println(a);
        a *= 2;
        System.out.println(a);
        a /= 4;
        System.out.println(a);

        short s = 5;
        //s = s + 5;编译错误，s在运算时自动转为int
        s += 5;//相当于s = (int)(s+5)
    }
}
